        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>Responder class / mock Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="mock" data-type="Responder">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../mock.html">mock</a> &rsaquo; <a href="../mock/Responder.html">Responder</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>Responder</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<p>The behavior of a method call in the mock library is specified
with <a class="crossref" href="../mock/Responder.html#Responder">Responder</a>s. A <a class="crossref" href="../mock/Responder.html#Responder">Responder</a> has a <a class="crossref" href="../mock/Responder.html#value">value</a> to throw
or return (depending on the type of <a class="crossref" href="../mock/Responder.html#action">action</a>),
and can either be one-shot, multi-shot, or infinitely repeating,
depending on the value of [count (1, greater than 1, or 0 respectively).</p>
<pre class="source">
class Responder {
 var value;
 Action action;
 int count;
 Responder(this.value, [this.count = 1, this.action = Action.RETURN]);
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="Responder">
<button class="show-code">Code</button>
new <strong>Responder</strong>(value, [int count = 1, <a href="../mock/Action.html">Action</a> action = Action.RETURN]) <a class="anchor-link" href="#Responder"
              title="Permalink to Responder.Responder">#</a></h4>
<div class="doc">
<pre class="source">
Responder(this.value, [this.count = 1, this.action = Action.RETURN]);
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="action">
<button class="show-code">Code</button>
<a href="../mock/Action.html">Action</a>         <strong>action</strong> <a class="anchor-link"
            href="#action"
            title="Permalink to Responder.action">#</a>
        </h4>
        <div class="doc">
<pre class="source">
action
</pre>
</div>
</div>
<div class="field"><h4 id="count">
<button class="show-code">Code</button>
int         <strong>count</strong> <a class="anchor-link"
            href="#count"
            title="Permalink to Responder.count">#</a>
        </h4>
        <div class="doc">
<pre class="source">
count
</pre>
</div>
</div>
<div class="field"><h4 id="value">
<button class="show-code">Code</button>
var         <strong>value</strong> <a class="anchor-link"
            href="#value"
            title="Permalink to Responder.value">#</a>
        </h4>
        <div class="doc">
<pre class="source">
value
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
